<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改任务调度执行步骤')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-dispatchSteps-edit" th:object="${ktDispatcherSteps}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">排序：</label>
                <div class="col-sm-8">
                    <input name="taskSort" th:field="*{taskSort}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">步骤名称：</label>
                <div class="col-sm-8">
                    <input name="stepName" th:field="*{stepName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">copyNr：</label>
                <div class="col-sm-8">
                    <input name="copy" th:field="*{copy}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">读取：</label>
                <div class="col-sm-8">
                    <input name="linesRead" th:field="*{linesRead}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">写入：</label>
                <div class="col-sm-8">
                    <input name="linesWritten" th:field="*{linesWritten}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">输入：</label>
                <div class="col-sm-8">
                    <input name="linesInput" th:field="*{linesInput}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">输出：</label>
                <div class="col-sm-8">
                    <input name="linesOutput" th:field="*{linesOutput}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">更新：</label>
                <div class="col-sm-8">
                    <input name="linesUpdated" th:field="*{linesUpdated}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">拒绝：</label>
                <div class="col-sm-8">
                    <input name="linesRejected" th:field="*{linesRejected}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">错误：</label>
                <div class="col-sm-8">
                    <input name="logErrors" th:field="*{logErrors}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">状态：</label>
                <div class="col-sm-8">
                    <textarea name="statusDescription" class="form-control">[[*{statusDescription}]]</textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">耗时：</label>
                <div class="col-sm-8">
                    <input name="logSeconds" th:field="*{logSeconds}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">速度：</label>
                <div class="col-sm-8">
                    <textarea name="speed" class="form-control">[[*{speed}]]</textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">：</label>
                <div class="col-sm-8">
                    <textarea name="logPriortty" class="form-control">[[*{logPriortty}]]</textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">：</label>
                <div class="col-sm-8">
                    <textarea name="stopped" class="form-control">[[*{stopped}]]</textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">：</label>
                <div class="col-sm-8">
                    <textarea name="paused" class="form-control">[[*{paused}]]</textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">任务ID：</label>
                <div class="col-sm-8">
                    <input name="taskId" th:field="*{taskId}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "busi/dispatchSteps";
        $("#form-dispatchSteps-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-dispatchSteps-edit').serialize());
            }
        }
    </script>
</body>
</html>